package com.ningju.procurement.core.testmanager.dao;

import com.ningju.procurement.common.dao.BaseDao;
import com.ningju.procurement.common.mybatis.pager.PageParam;
import com.ningju.procurement.core.common.bean.Company;
import com.ningju.procurement.core.common.bean.User;
import com.ningju.procurement.core.testmanager.bean.TestProject;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TestProjectDao extends BaseDao<TestProject> {

    List<TestProject> selectTestProjectByCompany(@Param("company") Company company, @Param("page") PageParam page);

    List<TestProject> selectTestProjectByUser(@Param("user") User user, @Param("page") PageParam page);

    List<TestProject> selectCompanyTestProjectByUser(@Param("user") User user, @Param("page") PageParam page);

}